package me.zhengjie.minbearwcs.dao.rework.inf;

import me.zhengjie.minbearwcs.entity.PO.wcs.rework.ReworkOrder;
import me.zhengjie.minbearwcs.entity.PO.wcs.rework.ReworkOrderDetail;
import me.zhengjie.minbearwcs.entity.PO.wcs.rework.status.ReworkOrderDetailStatus;

import java.util.List;

public interface ReworkOrderDetailDao {
    boolean insert(ReworkOrderDetail reworkOrderDetail);

    boolean updateStatusByDetailId(String detailId, ReworkOrderDetailStatus status);

    Long selectExcludeStatusCountByReworkOrderCode(String reworkOrderCode, ReworkOrderDetailStatus status);

    List<ReworkOrderDetail> selectByReworkOrderCode(String reworkOrderCode);

    boolean deleteById(Integer id);
}
